]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Declare variables
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 13 Jul 2018 21:32:33 +0000 (23:32 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 30 Jul 2018 21:20:49 +0000 (21:20 +0000)
Fixes warnings from GJS.

js/ui/windowManager.js

index b831071a09455b4a8093d5fd5768e5fec3ed57c2..02d5f90292de95f37579bdaba0e4e84ec576d672 100644 (file)
@@ -635,8 +635,8 @@ var AppSwitchAction = new Lang.Class({
 
         if (this.get_n_current_points() == 3) {
             for (let i = 0; i < this.get_n_current_points(); i++) {
-                [startX, startY] = this.get_press_coords(i);
-                [x, y] = this.get_motion_coords(i);
+                let [startX, startY] = this.get_press_coords(i);
+                let [x, y] = this.get_motion_coords(i);
 
                 if (Math.abs(x - startX) > MOTION_THRESHOLD ||
                     Math.abs(y - startY) > MOTION_THRESHOLD)